﻿using System;
using System.Drawing;

using Foundation;
using UIKit;

namespace iOS_Charming_Test
{
    public partial class RootViewController : UIViewController
    {
        public RootViewController(IntPtr handle)
            : base(handle)
        {
        }

        public override void DidReceiveMemoryWarning()
        {
            // Releases the view if it doesn't have a superview.
            base.DidReceiveMemoryWarning();

            // Release any cached data, images, etc that aren't in use.
        }

        #region View lifecycle

        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Perform any additional setup after loading the view, typically from a nib.
        }

        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);
        }

        public override void ViewDidAppear(bool animated)
        {
            base.ViewDidAppear(animated);
        }

        public override void ViewWillDisappear(bool animated)
        {
            base.ViewWillDisappear(animated);
        }

        public override void ViewDidDisappear(bool animated)
        {
            base.ViewDidDisappear(animated);
        }

        #endregion

        partial void UIButton5_TouchUpInside(UIButton sender)
        {
            InTheHand.UI.Popups.MessageDialog md = new InTheHand.UI.Popups.MessageDialog("Hello world", "Title");
            md.Commands.Add(new InTheHand.UI.Popups.UICommand("One", (c) => { System.Diagnostics.Debug.WriteLine("One"); }));
            md.Commands.Add(new InTheHand.UI.Popups.UICommand("Two", (c) => { System.Diagnostics.Debug.WriteLine("Two"); }));
            md.Commands.Add(new InTheHand.UI.Popups.UICommand("Three", (c) => { System.Diagnostics.Debug.WriteLine("Three"); }));
            md.Commands.Add(new InTheHand.UI.Popups.UICommand("Four", (c) => { System.Diagnostics.Debug.WriteLine("Four"); }));
           
        }
    }
}